package Mapper

import (
	"github.com/gin-gonic/gin"
	"hr-system/Controller"
)

func NewEmployeeGroup(r *gin.Engine) {
	newEmployeeRoutes := r.Group("/newEmployee")
	newEmployeeController := Controller.NewNewEmployeeController()
	newEmployeeRoutes.POST("/show", newEmployeeController.PageList) // 展示&查询入职人员
	newEmployeeRoutes.POST("/add", newEmployeeController.Create)  // 创建入职员工
	newEmployeeRoutes.POST("/update", newEmployeeController.Update)  // 更新
}
